<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Secret Enib:  Fichier source de src/constante.py</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Secret Enib
   &#160;<span id="projectnumber">1.2 finale</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&#160;associées</span></a></li>
      <li><a href="namespaces.html"><span>Paquetages</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/constante.py</div>  </div>
</div><!--header-->
<div class="contents">
<a href="constante_8py.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="namespaceconstante.html">00001</a> <span class="comment"># -*- coding: utf-8 -*-</span>
<a name="l00002"></a>00002 <span class="comment">#!/usr/bin/python</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="comment">#------------------------------------------------------------------------</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="comment">## @package     constante</span>
<a name="l00007"></a>00007 <span class="comment">## \brief       declaration of constant</span>
<a name="l00008"></a>00008 <span class="comment">## \author      Pierrick Troadec et Kawtar Hssain</span>
<a name="l00009"></a>00009 <span class="comment">## \date        28/12/2011</span>
<a name="l00010"></a>00010 <span class="comment">## \version     1.2</span>
<a name="l00011"></a>00011 <span class="comment">## \copyright   license BSD</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="comment">#------------------------------------------------------------------------</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="comment">#    Importations</span>
<a name="l00016"></a>00016 <span class="comment">#  -----------------</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="keyword">import</span> primitives <span class="keyword">as</span> prims
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="comment">#   Fonctions</span>
<a name="l00021"></a>00021 <span class="comment">#  -----------------</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="comment">## Texture du professeur 1 ( de type image.texture )</span>
<a name="l00024"></a><a class="code" href="namespaceconstante.html#a58a3299d003b0d98af788be733691bf8">00024</a> textureMaupas = prims.chargerTexture(<span class="stringliteral">&#39;../textures/prof/maupas.png&#39;</span>)
<a name="l00025"></a>00025 <span class="comment">## Texture du professeur 2 ( de type image.texture )</span>
<a name="l00026"></a><a class="code" href="namespaceconstante.html#aecd72534053c0de3500eb8f570a6043e">00026</a> textureDupuis = prims.chargerTexture(<span class="stringliteral">&#39;../textures/prof/dupuis.png&#39;</span>)
<a name="l00027"></a>00027 <span class="comment">## Texture du professeur 3 ( de type image.texture )</span>
<a name="l00028"></a><a class="code" href="namespaceconstante.html#ad1e344c317e425c8850971ee6aefc2c7">00028</a> textureMaisel = prims.chargerTexture(<span class="stringliteral">&#39;../textures/prof/maisal.png&#39;</span>)
<a name="l00029"></a>00029 <span class="comment">## Texture du professeur 4 ( de type image.texture )</span>
<a name="l00030"></a><a class="code" href="namespaceconstante.html#a4a473b507660f7bc1649646c70d64fd5">00030</a> textureGuern = prims.chargerTexture(<span class="stringliteral">&#39;../textures/prof/leguern.png&#39;</span>)
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">## Texture des murs ( de type image.texture )</span>
<a name="l00033"></a><a class="code" href="namespaceconstante.html#a3fff17348f58f0ce6fc42bb924e3ce74">00033</a> textureMur  = prims.chargerTexture(<span class="stringliteral">&#39;../textures/mur2.png&#39;</span>)
<a name="l00034"></a>00034 <span class="comment">## Texture des portes ( de type image.texture )</span>
<a name="l00035"></a><a class="code" href="namespaceconstante.html#a4171c2c7d09cc9d164931c8cb91a038d">00035</a> texturePorte = prims.chargerTexture(<span class="stringliteral">&#39;../textures/porte.png&#39;</span>)
<a name="l00036"></a>00036 <span class="comment">## Texture du sol ( de type image.texture )</span>
<a name="l00037"></a><a class="code" href="namespaceconstante.html#a1adc141cd4bc6c79a1b814447779dfb8">00037</a> sol = prims.chargerTexture(<span class="stringliteral">&#39;../textures/pavage.png&#39;</span>)
<a name="l00038"></a>00038 <span class="comment">## Texture de l&#39;interface des questions ( de type image.texture )</span>
<a name="l00039"></a><a class="code" href="namespaceconstante.html#a51b97ff617610b36cf97ce9923e9e13c">00039</a> fond = prims.chargerTexture(<span class="stringliteral">&#39;../textures/fond.png&#39;</span>)
<a name="l00040"></a>00040 <span class="comment">## Texture de la touche F ( de type image.texture )</span>
<a name="l00041"></a><a class="code" href="namespaceconstante.html#a27f0810153fa7b8866da067f84f29abf">00041</a> toucheF = prims.chargerTexture(<span class="stringliteral">&#39;../textures/f.png&#39;</span>)
<a name="l00042"></a>00042 <span class="comment">## Texture du plafond en cas de mauvaise reponse ( de type image.texture )</span>
<a name="l00043"></a><a class="code" href="namespaceconstante.html#ac9b56584aa613a1d775fbf174497f249">00043</a> plafond_rouge = prims.chargerTexture(<span class="stringliteral">&#39;../textures/plafond_rouge.png&#39;</span>)
<a name="l00044"></a>00044 <span class="comment">## Texture du plafond en cas de bonne reponse ( de type image.texture )</span>
<a name="l00045"></a><a class="code" href="namespaceconstante.html#aab5eb2dd7c96d6b5d27869d4bc1c1d92">00045</a> plafond_vert = prims.chargerTexture(<span class="stringliteral">&#39;../textures/plafond_vert.png&#39;</span>)
<a name="l00046"></a>00046 <span class="comment">## Texture de l&#39;écran de fin en cas de réussite ( de type image.texture )</span>
<a name="l00047"></a><a class="code" href="namespaceconstante.html#afeebc32c086d4ce0d7e318dcc959ec01">00047</a> winner = prims.chargerTexture(<span class="stringliteral">&#39;../textures/winner.png&#39;</span>)
<a name="l00048"></a>00048 <span class="comment">## Texture de l&#39;écran de fin en cas d&#39;échec ( de type image.texture )</span>
<a name="l00049"></a><a class="code" href="namespaceconstante.html#af3c6f241fce07d4e9b24a3b52099163b">00049</a> loser = prims.chargerTexture(<span class="stringliteral">&#39;../textures/loser.png&#39;</span>)
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="comment">##Variable globale de création de porte sur le mur nord d&#39;une pièce</span>
<a name="l00052"></a><a class="code" href="namespaceconstante.html#ae59e6a60b07b494bab794bd2ef2be26b">00052</a> NORD = 1
<a name="l00053"></a>00053 <span class="comment">##Variable globale de création de porte sur le mur sud d&#39;une pièce</span>
<a name="l00054"></a><a class="code" href="namespaceconstante.html#a5534f7030cb1d3f5809b4fe536d9018c">00054</a> SUD = 2
<a name="l00055"></a>00055 <span class="comment">##Variable globale de création de porte sur le mur est d&#39;une pièce</span>
<a name="l00056"></a><a class="code" href="namespaceconstante.html#a5ed68b64bf88b340df4823ee390548c7">00056</a> EST = 4
<a name="l00057"></a>00057 <span class="comment">##Variable globale de création de porte sur le mur ouest d&#39;une pièce</span>
<a name="l00058"></a><a class="code" href="namespaceconstante.html#a5b979f3967bf6bd5932c99f8f7ebb3b9">00058</a> OUEST = 8
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="comment">##Variable globale d&#39;alignement vertical d&#39;un couloir</span>
<a name="l00061"></a><a class="code" href="namespaceconstante.html#a9a59916f0f6e661ebf9baa663e3d7c97">00061</a> VERTICAL = 1
<a name="l00062"></a>00062 <span class="comment">##Variable globale d&#39;alignement horizontal d&#39;un couloir</span>
<a name="l00063"></a><a class="code" href="namespaceconstante.html#a02c743a7ed0031636e25219bffe0398a">00063</a> HORIZONTAL = 2
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">##Duree totale d&#39;une partie en minute</span>
<a name="l00066"></a><a class="code" href="namespaceconstante.html#ae5c0bfc103f4155ff48f78e07c00df41">00066</a> TEMPS_PARTIE = 1
<a name="l00067"></a>00067 <span class="comment">##Score maximale atteignable durant une partie</span>
<a name="l00068"></a><a class="code" href="namespaceconstante.html#ac370a1a07e2764dd17be856117ecc600">00068</a> SCORE_MAX = 1000
<a name="l00069"></a>00069 <span class="comment">##Nombre de professeurs créé pour cette partie</span>
<a name="l00070"></a><a class="code" href="namespaceconstante.html#ab544aacc1598b671ee73d9c4d9fa7e5e">00070</a> NOMBRE_DE_PROF = 4
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Espaces de nommage</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Vendredi Décembre 30 2011 00:45:18 pour Secret Enib par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
